<template>
  <div>父组件</div>
  <Son></Son>
</template>

<script setup>
import Son from "./Son.vue";
import { ref, provide } from "vue";
// 语法:  provide(key,要提供给后代的数据)
const username = ref("李四");
provide("usernameprop", username);
</script>
<style scoped>
</style>